<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="en" ng-app="CDash">
  <head ng-controller="HeadController">
    <meta charset="UTF-8">
    <meta name="robots" content="noindex,nofollow" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" href="css/jquery.qtip.min.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery-ui-1.10.4.css" />
    <link rel="stylesheet" type="text/css" href="css/jqModal.css" />
    <link rel="stylesheet" type="text/css" ng-href="build/css/{{cssfile}}_@@version.css" />
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <style type="text/css">
     code {
         background-color: transparent;
         color: #333;
     }

     table {
         border-collapse: separate;
         border-spacing: 2px;
     }
    </style>
    <script src="js/CDash_@@version.min.js"></script>
    <title ng-bind="title">CDash</title>
  </head>

  <body bgcolor="#ffffff" ng-controller="BuildErrorController">
  -->
    <div ng-if="cdash.requirelogin == 1" ng-include="'login.php'"></div>

    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.header || 'build/views/partials/header_@@version.html'"></ng-include>
    <br/>

    <div id="main_content" ng-if="cdash.requirelogin != 1 && !loading && !cdash.error">
      <table border="0">
        <tr>
          <td align="left">
            <b>Site: </b>
            <a href="viewSite.php?siteid={{cdash.build.siteid}}">
              {{cdash.build.site}}
            </a>
          </td>
        </tr>
        <tr>
          <td align="left">
            <b>Build Name: </b>
            {{cdash.build.buildname}}
          </td>
        </tr>
        <tr>
          <td align="left">
            <b>Build Time: </b>
            {{cdash.build.starttime}}
          </td>
        </tr>
        <tr>
          <td align="left">
            &#x20;
          </td>
        </tr>
        <tr>
          <td align="left" class="num-errors">
            Found <b>{{cdash.numErrors}}</b>
            <ng-pluralize count="cdash.numErrors"
                          when="{'1':     '{{cdash.errortypename}}',
                                 'other': '{{cdash.errortypename}}s'}"></ng-pluralize>
            <span ng-if="cdash.parentBuild"> across <b>{{cdash.numSubprojects}}</b>
              <ng-pluralize count="cdash.numSubprojects"
                              when="{'1':     'subproject',
                                     'other': 'subprojects'}"></ng-pluralize>.</span>
          </td>
        </tr>
        <tr>
          <td align="left">
            <a href="viewBuildError.php?type={{cdash.nonerrortype}}&buildid={{cdash.build.buildid}}">
              {{cdash.nonerrortypename}}s are here.
            </a>
          </td>
        </tr>
      </table>

      <br/>

      <!-- If it's a parent build, show build errors in an abbreviated view grouped by subproject -->
      <table ng-if="cdash.parentBuild" border="0" cellpadding="4" cellspacing="0" width="100%" class="tabb">
        <thead>
          <tr class="table-heading">
            <th align="left" width="15%">
              Subproject
            </th>
            <th align="left">
              Errors
            </th>
          </tr>
        </thead>

        <tbody>
          <tr ng-repeat="error in pagination.buildErrors">
            <td style="vertical-align:top">{{error.subprojectname}}</td>
            <td>
              <a href="#" ng-click="showErrors = !showErrors">
                Error building {{error.outputfile}}
              </a>
              <div ng-hide="!showErrors">
                <build-error>{{error}}</build-error>
              </div>
            </td>
          </tr>
        </tbody>
      </table>

      <!-- Otherwise just display all the errors for this build -->
      <div ng-if="!cdash.parentBuild">
        <build-error ng-repeat="error in pagination.buildErrors"></build-error>
      </div>

      <div ng-if="cdash.numErrors > 25">
        <uib-pagination
            ng-model="pagination.currentPage"
            total-items="cdash.numErrors"
            max-size="pagination.maxSize"
            items-per-page="pagination.numPerPage"
            ng-change="pageChanged()"
            boundary-links="true">
          </uib-pagination>

          <div>
            <label>Items per page</label>
            <select ng-model="pagination.numPerPage" convert-to-number ng-change="pageChanged()">
              <option value="25">25</option>
              <option value="50">50</option>
              <option value="100">100</option>
              <option value="-1">All</option>
            </select>
          </div>
      </div>
    </div>

    <!-- FOOTER -->
    <br/>
    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.footer || 'build/views/partials/footer_@@version.html'"></ng-include>
<!--  </body>
</html> -->
